<!DOCTYPE html>
<html>

<head>
    <meta charset='UTF-8'>
    <meta name='viewport' content='width=device-width,initial-scale=1.0'>
    <meta http-equiv='X-UA-Compatible' content='ie=edge'>
    <title>Document</title>
</head>

<body>
    <div id='app'>
        <!-- v-once:如果标签只渲染一次 就使用v-once指令
            v-once和v-cloak都不需要赋值
        -->

        <p v-once>{{msg}}</p>
        <input type="text" v-model="msg">
    </div>
    <script src='./vue.js'></script>
    <script>
        new Vue({
            el: '#app',
            data: {
                msg: 'abc'
            },
            methods: {

            }
        });
    </script>
</body>

</html>